<?php
//载入函数
include "../../../functions.php";	
//载入smarty
include "../../../smarty/Smarty.class.php";
//载入模型类
include "../model.class.php";
$smarty = new Smarty();
//模板目录
$smarty->template_dir = "view";
//编译目录
$smarty->compile_dir = "temp/compile";
//左定界符
$smarty->left_delimiter = "{";
//有定界符
$smarty->right_delimiter = "}";

$str = "asdfghjklasdfg";
$str = "全是帅哥美女";
$smarty->assign("str",$str);

//自定义变量调节器，在pubgins目录找到modifier开头的文件，复制一个进行修改，注意：文件名和函数名保持一致

//载入模板
$smarty->display("index.html");








